package com.ktgj.flight.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.flight.mapper.FlightOrderAddressPostMapper;
import com.ktgj.flight.domain.FlightOrderAddressPost;
import com.ktgj.flight.service.IFlightOrderAddressPostService;

/**
 * 航信行程单地址Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-26
 */
@Service
public class FlightOrderAddressPostServiceImpl implements IFlightOrderAddressPostService 
{
    @Autowired
    private FlightOrderAddressPostMapper flightOrderAddressPostMapper;

    /**
     * 查询航信行程单地址
     *
     * @param id 航信行程单地址ID
     * @return 航信行程单地址
     */
    @Override
    public FlightOrderAddressPost selectFlightOrderAddressPostById(Long id)
    {
        return flightOrderAddressPostMapper.selectFlightOrderAddressPostById(id);
    }

    /**
     * 查询航信行程单地址
     *
     * @param customerId 航信行程单地址ID
     * @return 航信行程单地址
     */
    @Override
    public List<FlightOrderAddressPost> selectFlightOrderAddressPostByIds(Long customerId)
    {
        return flightOrderAddressPostMapper.selectFlightOrderAddressPostByIds(customerId);
    }

    /**
     * 查询航信行程单地址列表
     * 
     * @param flightOrderAddressPost 航信行程单地址
     * @return 航信行程单地址
     */
    @Override
    public List<FlightOrderAddressPost> selectFlightOrderAddressPostList(FlightOrderAddressPost flightOrderAddressPost)
    {
        return flightOrderAddressPostMapper.selectFlightOrderAddressPostList(flightOrderAddressPost);
    }

    /**
     * 新增航信行程单地址
     * 
     * @param flightOrderAddressPost 航信行程单地址
     * @return 结果
     */
    @Override
    public int insertFlightOrderAddressPost(FlightOrderAddressPost flightOrderAddressPost)
    {
        return flightOrderAddressPostMapper.insertFlightOrderAddressPost(flightOrderAddressPost);
    }

    /**
     * 修改航信行程单地址
     * 
     * @param flightOrderAddressPost 航信行程单地址
     * @return 结果
     */
    @Override
    public int updateFlightOrderAddressPost(FlightOrderAddressPost flightOrderAddressPost)
    {
        return flightOrderAddressPostMapper.updateFlightOrderAddressPost(flightOrderAddressPost);
    }

    /**
     * 批量删除航信行程单地址
     * 
     * @param ids 需要删除的航信行程单地址ID
     * @return 结果
     */
    @Override
    public int deleteFlightOrderAddressPostByIds(Long[] ids)
    {
        return flightOrderAddressPostMapper.deleteFlightOrderAddressPostByIds(ids);
    }

    /**
     * 删除航信行程单地址信息
     * 
     * @param id 航信行程单地址ID
     * @return 结果
     */
    @Override
    public int deleteFlightOrderAddressPostById(Long id)
    {
        return flightOrderAddressPostMapper.deleteFlightOrderAddressPostById(id);
    }
}
